package com.atguigu.grainmall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author shiyuan
 * @Date 2023/3/21 14:03
 * @Version 1.0
 **/
@FeignClient("grainmall-order")
public interface OrderFeignService {

    /**
     * 根据订单号获取订单状态
     * @param orderSn
     * @return
     */
    @GetMapping("/order/order/status/{orderSn}")
    R getOrderStatus(@PathVariable("orderSn") String orderSn);

}
